package com.joinlabs.service;

import java.math.BigDecimal;
import java.util.List;

import com.joinlabs.entity.Assess;
import com.joinlabs.entity.Enshrine;
import com.joinlabs.entity.Order;
import com.joinlabs.entity.Orderitem;
import com.joinlabs.entity.ProTypeBean;
import com.joinlabs.entity.Wares;
import com.joinlabs.entity.conditionBean;


public interface IProductService {
	
	Wares selectByPrimaryKey(int pid);

	List<Wares> selectBytypeId(int warestypeId);
	
	String selectBytypeName(int warestypeId);
	
	//模糊查询---zmj
	List<Wares> selectBylikeName(String likeName);
	
	//条件查询----zmj
	List<ProTypeBean> selectfyTypeName();
	
	//多条件结果查询----zmj
	List<Wares> selectBytypewaresName(conditionBean condtionBean);
	
	//主页模糊查询  --吴毓印
	List<Wares> selectsousuo(String likeName);
	
	//通过商品id找其对应评价----zmj
	List<Assess> selectBywaresid(BigDecimal waresId);
	
	//通过商品id找订单子项----zmj
	List<Orderitem> selectwaresidord(BigDecimal waresId);
	
	//收藏----zmj
	int insertenshrine(Enshrine enshrine);
	
	//通过用户找订单子项---zmj
	List<Orderitem> selectByUser(String userId);
	
	//---zmj
	Orderitem selectByorderitemid(int orderitemid);
	
	//显示评价---zmj
	Assess selectByorderItemid(int orderitemid);
	
	//插入评价---zmj
	int insertassess(Assess ass);
	
	//聚合查找评价条数---zmj
	int selectByprocount(BigDecimal waresId);
	
	List<Enshrine> selectuserwares(Enshrine enshrine);
}
